package com.coding.mapper;

import com.coding.pojo.Videos;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VideoMapper {
    int addVideo(@Param("video") Videos video);
    public List<Videos> init();
    public Long likesInit(@Param("videoId") Long id);
    public Long favouriteInit(@Param("videoId") Long id);

    public Long sharesInit(@Param("videoId") Long id);
    public boolean isFan(@Param("userId") Long id);
}
